home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Into His Marvelous Light
/
Into His Marvelous LIGHT.iso
/
lesson1.dxr
/
00282_Script_Play Frame X
< prev
next >
Wrap
Text File
|
2001-09-05
|
2KB
|
72 lines
-- DESCRIPTION --
on getBehaviorDescription me
return "¼
PLAY FRAME X"&RETURN&RETURN&"¼
Drop this behavior onto a Sprite, the Stage or into the Script Channel of ¼
the Score to start a sequence and move the playback head to a given frame."&¼
RETURN&RETURN&"¼
If you drop it onto a graphic member, the 'play' command ¼
is sent when the user clicks on the sprite (on mouseUp)."&RETURN&RETURN&"¼
If you drop it onto the Stage or the Script Channel of the Score, ¼
it will be sent when the playback head leaves the frame (on exitFrame)."&¼
RETURN&RETURN&"¼
Use the 'Play Done' behavior to end the sequence and to tell the ¼
playback head to return to the current frame."&RETURN&RETURN&"¼
PARAMETERS:"&RETURN&"¼
* Play which frame on mouseUp?"&RETURN&RETURN&"¼
ASSOCIATED BEHAVIORS:"&RETURN&"¼
+ Play Movie X"&RETURN&"¼
+ Play Done"
end getBehaviorDescription
on getBehaviorTooltip me
return "¼
Use with graphic members or as a frame behavior."&RETURN&RETURN&"¼
Jumps the playback head to the given frame. Acts"&RETURN&"¼
on mouseUp or on exitFrame, depending on whether"&RETURN&"¼
you drag it to a sprite or to the Stage."&RETURN&RETURN&"¼
Use the 'Play Done' behavior to return to this frame."
end getBehaviorTooltip
-- HISTORY --
-- 3 November 1998, written for the D7 Behaviors Palette by James Newton
property myTargetFrame
on mouseUp me
play myTargetFrame
end mouseUp
on exitFrame me
if the currentSpriteNum = 0 then
play myTargetFrame
end if
end exitFrame
on getPropertyDescriptionList me
if the currentSpriteNum = 0 then
theComment = "Play which frame on exitFrame?:"
else
theComment = "Play which frame on mouseUp?:"
end if
return ¼
[ ¼
#myTargetFrame: ¼
[ ¼
#comment: theComment, ¼
#format: #integer, ¼
#default: the frame ¼
] ¼
]
end getPropertyDescriptionList